package api.doctor;

import java.io.IOException;


import org.json.JSONException;
import org.json.JSONObject;

import common.Host;
import common.Request;

/**
 * 实现帮忙医医生端登录GetAPIAccountInfoPC接口调用
 * @author maojj
 *
 */
public class GetAPIAccountInfoPC
{
	/**
	 * 实现帮忙医医生端登录GetAPIAccountInfoPC接口调用
	 * @param account - 医生账号
	 * @param password - 密码
	 * @return 接口返回数据
	 * @throws JSONException 
	 * @throws IOException 
	 */
	public static String post(String account, String password) throws JSONException, IOException
	{
		//拼接接口地址
		String url = Host.getAddress() + "/APIAccount/GetAPIAccountInfoPC";
						
		//给接口参数赋值
		JSONObject parmsTemp = new JSONObject();
		parmsTemp.put("UserAccount",account);
		parmsTemp.put("Password",password);
		JSONObject parms = new JSONObject();
		parms.put("param", parmsTemp.toString());
				
		//调用接口并返回接口结果
		String result = Request.post(url, parms);
		return result;		
	}

}
